'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
  }
  async list(){
    const {ctx} = this;
    // console.info('ctx====',ctx,ctx.body)
    ctx.body = '<h1>jspang blog list</h1>'
    console.log('ctx====body',ctx,ctx.body)
  }
}

module.exports = HomeController;
